package top.jinlijun.heytea.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

public class User {

    private String userId;
    private String tel;
    private String eMail;
    private String userName;
    private Integer integral;
    private String location;
    private Integer gender;
    private String image;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String birthday;

    public User() {
    }

    public User(String userId, String eMail, String userName, String location, Integer gender, String image, String birthday) {
        this.userId = userId;
        this.eMail = eMail;
        this.userName = userName;
        this.location = location;
        this.gender = gender;
        this.image = image;
        this.birthday = birthday;
    }

    public User(String userId, String tel, String eMail, String userName) {
        this.userId = userId;
        this.tel = tel;
        this.eMail = eMail;
        this.userName = userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId='" + userId + '\'' +
                ", tel='" + tel + '\'' +
                ", eMail='" + eMail + '\'' +
                ", userName='" + userName + '\'' +
                ", integral=" + integral +
                ", location='" + location + '\'' +
                ", gender=" + gender +
                ", image='" + image + '\'' +
                ", birthday='" + birthday + '\'' +
                '}';
    }
}
